package Visitor_Pattern.School;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public class Point_Check extends Award_Check{
    @Override
    public void check(Teacher teacher) {
        if(teacher.getPoint()>=90){
            System.out.println("该老师"+teacher.getName()+"平时成绩为"+teacher.getPoint()+"可以评选成绩优秀奖");
        }
        else{
            System.out.println("该老师"+teacher.getName()+"平时成绩为"+teacher.getPoint()+"小于90，不可以评选成绩优秀奖");
        }
    }

    @Override
    public void check(Student student) {
        if(student.getPoint()>=90){
            System.out.println("该学生"+student.getName()+"平时成绩为"+student.getPoint()+"可以评选成绩优秀奖");
        }
        else{
            System.out.println("该学生"+student.getName()+"平时成绩为"+student.getPoint()+"小于90，不可以评选成绩优秀奖");
        }
    }
}
